package com.example;

import java.util.Scanner;

/**
 * @Author: Yun
 * @Date: 2025/4/20
 */

import java.util.*;

public class Test {
    public static void main(String[] args) {
        Scanner ser = new Scanner(System.in);
        while (ser.hasNextInt()){
            int a = ser.nextInt();
            for (int i = 0; i < a; i++) {
                for (int j = 0; j < a; j++) {
                    if (i == j || i + j == a - 1) {
                        System.out.print("*");
                    } else {
                        System.out.print(" ");
                    }
                }
                System.out.println();
            }
        }
    }
}

